home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / usleep.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SLEEP(3)            MINTLIB LIBRARY FUNCTIONS            SLEEP(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        sleep, usleep - suspend execution for interval
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <unistd.h>
  12.  
  13.        unsigned sleep(unsigned seconds);
  14.  
  15.        void usleep(unsigned long usec); // should be of type unsigned long
  16.  
  17. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  18.        The  current  process  is  supended from execution for the
  19.        number of seconds (sleep) or microseconds (usleep)  speci-
  20.        fied  by  the argument. Sleep returns early if a signal is
  21.        caught; after the signal handler has returned, sleep  will
  22.        return  the "unslept" amount. If no signal was caught, and
  23.        after the full amount of of time  (and  possibly  somewhat
  24.        longer) has passed, execution is resumed.
  25.  
  26. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  27.        a✓al✓la✓ar✓rm✓m(✓(3✓3)✓),✓, F✓Fs✓se✓el✓le✓ec✓ct✓t(✓(2✓2)✓),✓, P✓Pa✓au✓us✓se✓e(✓(2✓2)✓),✓, P✓Ps✓si✓ig✓gp✓pa✓au✓us✓se✓e(✓(2✓2)✓),✓, T✓Ta✓al✓la✓ar✓rm✓m(✓(2✓2)✓)
  28.  
  29. N✓NO✓OT✓TE✓ES✓S
  30.        On UN*X, usleep is of type unsigned int.
  31.  
  32.        Under  TOS  or  MiNT before 0.95, these routines do a busy
  33.        wait until enough time has passed.
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.